package com.example.drive.car.mapper;

import com.example.drive.car.pojo.Car;
import com.example.drive.car.pojo.CarDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CarMapper {

    List<Car> getList();

    int add(CarDTO carDTO);

    Car getById(Integer id);

    int delete(Integer id);

    int update(Car car);

    int saveImage(Car car);
}